package com.coolingme.general;

/**
 * 门面（外观）模式，系统对外的统一接口
 *
 * @author wangyue
 * @date 2020/9/15 11:45
 */
public class Facade {

    private SubSystemA subSystemA = new SubSystemA();
    private SubSystemB subSystemB = new SubSystemB();
    private SubSystemC subSystemC = new SubSystemC();


    /**
     * 封装操作
     */
    public void doing() {
        subSystemA.doing();
        subSystemB.doing();
        subSystemC.doing();
    }

}
